package edu.sctu.wulixia.month6.day20150606.Data;

        import edu.sctu.wulixia.month6.day20150606.Check.CheckCard;
        import edu.sctu.wulixia.month6.day20150606.PeopleInfo.PeopleAppbean;
        import java.text.SimpleDateFormat;
        import java.util.Calendar;
        import java.util.Date;

/**
 * Created by user05 on 2015/6/9.
 */
public class Time {

    public void getTime() {
        PeopleAppbean people = new PeopleAppbean();

        //乘客乘车的站点数 count
        int count = new CheckCard().getCount(people.getStart(),people.getEnd());
        System.out.println(count);
//        Date startTime = new Date();
//        Calendar calendar = Calendar.getInstance();
//        SimpleDateFormat time = new SimpleDateFormat("yyyy-MM-dd at HH:mm:ss ");
//
//        System.out.println(people.getName()+"进站时间："+time.format(startTime));
//
//        for (int i = 0; i <count ; i++) {
//            //每站行驶两分钟
//        calendar.add(calendar.MINUTE,2*i);
//        }
//        System.out.println(people.getName()+"出站时间："+calendar.getTime());

    }

    public static void main(String[] args) {
        Time time = new Time();
        time.getTime();
    }
}
